package com.xhsj.user.cram.mapper;

import com.xhsj.user.cram.entity.TbComputerRoomAccessPersonnel;
import com.xhsj.user.cram.vo.FindComputerRoomAccessPersonnelDetailedVo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 机房出入人员 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2021-04-19
 */
@Mapper
public interface TbComputerRoomAccessPersonnelMapper extends BaseMapper<TbComputerRoomAccessPersonnel> {
       /**
           * @Description: 根据业务id查找数据
           * @Param:  dataId业务id
           * @Author: liuqinghua
           * @Date: 2021/4/20
           */
   List<FindComputerRoomAccessPersonnelDetailedVo> findPersonnelListByDataId(@Param(value="dataId") Long dataId);

    /**
     * @Description: 删除人员根据业务id
     * @Param:  dataId 业务id
     * @Author: liuqinghua
     * @Date: 2021/4/20
     */
    void deleteByDataId(@Param(value="dataId")Long dataId);
}
